//
// Created by tang on 23-4-24.
//

#include "type_info.hpp"

TypeInfo::TypeInfo (const Cursor &cursor, const Namespace &current_ns):
    meta_ (cursor), enabled_(meta_.flag (Enable)), ns_(current_ns), root_ (cursor)
{

}
TypeInfo::~TypeInfo () {}

const MetaInfo &TypeInfo::meta_data () const
{
    return meta_;
}
std::string TypeInfo::source_file () const
{
    return root_.source_file();
}
Namespace TypeInfo::ns () const
{
    return ns_;
}
Cursor &TypeInfo::cursor ()
{
    return root_;
}
